package task;

import java.util.Scanner;

public class Task3_6 {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        
        while(input.hasNextInt()) {
            int a = input.nextInt();
            for (int i = 0; i < a; i++) {
                for (int j = 0; j < a; j++) {
                    if(i ==j ||(i + j == a -1)){
                        System.out.print("*");
                    }else{
                        System.out.print(" ");
                    }

                }
                System.out.println();
            }
        }


        /*int[][] s = new int[a][a];
        //把要打印的图案放入此的数组中
        for(int i = 0;i < a;i ++){
            for(int j = 0;j < a;j ++){
                if(i == j||i + j == a - 1)
                    //s[i][j] = 1;
                    System.out.print("*");
                else
                    System.out.print(" ");
            }
            System.out.println();
        }*/
    }
}

